package cn.hxlc.tie.demo.modular.zr.equipmentzr.entity;/*
 @author rui
 @date 2021/6/28 --18:18
*/

import cn.hxlc.tie.demo.core.enums.StatusEnum;
import cn.hxlc.tie.demo.modular.zr.equipmentzr.model.result.EquipmentGroupResult;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("zr_bd_equipmentgroup")
public class EquipmentGroup implements Serializable {
    private static  final long serialVersionUID=1L;

    @TableId(value="FID",type = IdType.AUTO)
    private Long fid;

    @TableField("FNAME")
    private String fname;

    @TableField("FNUMBER")
    private String fnumber;

    @TableField("FSTATUS")
    @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    private StatusEnum fstatus;

    @TableField("FCREATORID")
    private Long fcreatorid;

    @TableField("FCREATETIME")
    private Date fcreatetime;

    @TableField("FOID")
    private String foid;

    @TableField("FPARENTID")
    private Long fparentid;
}
